local targetKills = 100

ACHIEVEMENT.Name			= "Self-preservationist"
ACHIEVEMENT.Description		= "Kill "..targetKills.." enemies without dying."
ACHIEVEMENT.Icon			= nil

function ACHIEVEMENT:OnNPCKilled (npc, atk, wpn)
	if (!IsValid(atk) or !atk:IsPlayer()) then return end
	
	atk.kills = atk.kills + 1
	
	local bool = atk.kills >= targetKills
	if bool then
		self:SetValue( atk, "done", 1 )
	end
end

function ACHIEVEMENT:PlayerSpawn (ply)
	pl.kills = 0
end

function ACHIEVEMENT:CompletionConditions (ply)
	return self:GetValue( ply, "done", 0 ) == 1
end

function ACHIEVEMENT:FractionComplete (ply)
	return self:GetValue( ply, "done", 0 )
end

function ACHIEVEMENT:StatusText( ply )
	return ""
end
